#!/bin/sh

echo -n "Is it morining? Please answer yes or no: "
read timeofday

if [ "$timeofday" = "yes" ] 
then
  echo "Good morning"

elif [ "$timeofday" = "no" ]
then
  echo "Good afternoon"

else 
  echo "Sorry, $timeofday not recognized, Enter yes of no"
  exit 1
fi

exit 0
